package com.rongc.client.freight.business.mine.buz;

import android.content.Context;

import com.rongc.client.freight.R;
import com.rongc.client.freight.base.view.widget.CJRow.ARResponse;
import com.rongc.client.freight.utils.dic.impl.Field;
import com.rongc.client.freight.utils.dic.impl.FieldConstant;
import com.rongc.client.freight.utils.dic.impl.Table;

/**
 * Created by ccqx on 2017/7/1.
 */

public class PasswordBuz {
    public static Table getPasswordTable(Context context) {

        Table table = new Table();
        table.addField(new Field("phone", context.getResources().getString(R.string.setting_password_phone), 1, FieldConstant.SHOWTYPE_NO_CLICK,FieldConstant.INPUTTYPE_SINGLE,FieldConstant.EDIT_MODE,FieldConstant.INPUTSTYLE_DATATIMESTYLE));
        table.addField(new Field("verifiy", context.getResources().getString(R.string.setting_password_verifiy), 2, FieldConstant.SHOWTYPE_NO_CLICK,FieldConstant.INPUTTYPE_SINGLE,FieldConstant.EDIT_MODE,FieldConstant.INPUTSTYLE_TEXTSTYLE));
        table.addField(new Field("idcard", context.getResources().getString(R.string.setting_password_idcard), 3, FieldConstant.SHOWTYPE_NO_CLICK,FieldConstant.INPUTTYPE_SINGLE,FieldConstant.EDIT_MODE,FieldConstant.INPUTSTYLE_DATATIMESTYLE));
        table.addField(new Field("pay", context.getResources().getString(R.string.setting_password_pay), 4, FieldConstant.SHOWTYPE_NO_CLICK,FieldConstant.INPUTTYPE_SINGLE,FieldConstant.EDIT_MODE,FieldConstant.INPUTSTYLE_DATATIMESTYLE));
        table.addField(new Field("repay", context.getResources().getString(R.string.setting_password_repay), 5, FieldConstant.SHOWTYPE_NO_CLICK,FieldConstant.INPUTTYPE_SINGLE,FieldConstant.EDIT_MODE,FieldConstant.INPUTSTYLE_NUMBERSTYLE));

        return table;
    }

    public static ARResponse getMockBaseResponse(){
        String str = "{\"data\":{\"phone\":\"\",\"verifiy\":\"\"," +
                "\"idcard\":\"\",\"pay\":\"\",\"repay\":\"\"}}";
        return new ARResponse(str);
    }

}
